package com.tangruitao.bean;

import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class Users {

  private Integer userId;
  @NotBlank(message = "工号不为空")
  private String userNumber;
  @NotBlank(message = "密码不为空")
  private String userPassword;
  private Integer userRole;
  private String userName;

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public String getUserNumber() {
    return userNumber;
  }

  public void setUserNumber(String userNumber) {
    this.userNumber = userNumber;
  }


  public String getUserPassword() {
    return userPassword;
  }

  public void setUserPassword(String userPassword) {
    this.userPassword = userPassword;
  }


  public Integer getUserRole() {
    return userRole;
  }

  public void setUserRole(Integer userRole) {
    this.userRole = userRole;
  }

}
